<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
	<h:head>
	  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	  <title><ui:insert name="title">Sistema de Controle</ui:insert></title>
	  <link href="#{request.contextPath}/resource/css/style.css" rel="stylesheet" type="text/css"/>
	</h:head>
	<h:body>
		<h:form>
			<div id="header">
			    <ui:insert name="header">
				    <p:growl id="messages"/>
					    <p:menubar>
					    	<p:menuitem value="Inicio" url="/home.xhtml" icon="ui-icon ui-icon-home" />
					        <p:submenu label="Arquivo" icon="ui-icon ui-icon-document">
					            <p:submenu label="Novo" icon="ui-icon ui-icon-contact">
					                <p:menuitem value="Cadastro" url="/xhtml/cadastroPessoa.xhtml" helpText="CTRL+O" />
					                <p:menuitem value="Evento" url="/xhtml/cadastroEvento.xhtml" helpText="CTRL+N" />
					            </p:submenu>
					            <p:submenu label="Consultar" icon="ui-icon ui-icon-search">
					            	<p:menuitem value="Cadastro" url="#"/>
					            	<p:menuitem value="Evento" url="#"/>
					            </p:submenu>
					            <p:separator />
					            <p:menuitem value="Sair" url="http://localhost:8080/sistema-de-controle/" />
					        </p:submenu>
					
					        <p:submenu label="Editar" icon="ui-icon ui-icon-pencil">
					            <p:menuitem value="Evento" url="#" icon="ui-icon ui-icon-arrowreturnthick-1-w" helpText="CTRL+Z"></p:menuitem>
					            <p:menuitem value="Cadastro" url="#" icon="ui-icon ui-icon-arrowreturnthick-1-e" helpText="CTRL+Y"></p:menuitem>
					        </p:submenu>
					
					        <p:submenu label="Ajuda" icon="ui-icon ui-icon-help">
					            <p:submenu label="Procura" icon="ui-icon ui-icon-search">
					                <p:submenu label="Texto">
					                    <p:menuitem value="Espaço de Trabalho" url="#" />
					                </p:submenu>
					                <p:menuitem value="Arquivo" url="#" />
					            </p:submenu>
					        </p:submenu>
					
					        <p:submenu label="Relatório" icon="ui-icon ui-icon-gear">
					            <p:submenu label="Ajax" icon="ui-icon ui-icon-refresh">
					                <p:menuitem value="Save" actionListener="#{buttonBean.save}" icon="ui-icon ui-icon-disk" update="messages"/>
					                <p:menuitem value="Update" actionListener="#{buttonBean.update}" icon="ui-icon ui-icon-arrowrefresh-1-w" update="messages"/>
					            </p:submenu>
					            <p:submenu label="Non-Ajax" icon="ui-icon ui-icon-newwin">
					                <p:menuitem value="Delete" actionListener="#{buttonBean.delete}" icon="ui-icon ui-icon-close" update="messages" ajax="false"/>
					            </p:submenu>
					        </p:submenu>
					
					        <p:menuitem value="Sair" url="http://localhost:8080/sistema-de-controle/" icon="ui-icon ui-icon-close" />
					    </p:menubar>	
			    </ui:insert>
			</div>
			
			<div id="content">
			  <ui:insert name="content">
			    	Content area.  See comments below this line in the source.
			  </ui:insert>
			</div>
			
			<div id="footer">
			  <ui:insert name="footer">
			  </ui:insert>
			</div>
		</h:form>
	</h:body>

</html>
